Why can't I call a static method from the constructor